﻿<phone:PhoneApplicationPage 
	x:Class="NUnitTestRunnerWP7.UnitTestDetailsPage"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
	shell:SystemTray.IsVisible="True" Width="480" Height="768">
	
	<!--<phone:PhoneApplicationPage.Resources>
		<viewModels:UnitTestResultViewModel x:Key="sampleDataSource" />
	</phone:PhoneApplicationPage.Resources> -->
	
	<!--LayoutRoot contains the root grid where all other page content is placed-->
	<Grid x:Name="LayoutRoot" Background="Transparent">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>

		<!--TitlePanel contains the name of the application and page title-->
		<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="24,24,0,12">
			<TextBlock x:Name="ApplicationTitle" Text="NUnit Test Runner" Style="{StaticResource PhoneTextNormalStyle}"/>
			<TextBlock x:Name="PageTitle" Text="Test Details" Margin="-3,-8,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
		</StackPanel>

		<!--ContentPanel - place additional content here-->
		<Grid x:Name="ContentGrid" Grid.Row="1"><!-- d:DataContext="{Binding Source={StaticResource sampleDataSource}}"> -->
			<Grid.RowDefinitions>
				<RowDefinition Height="0.09*"/>
				<RowDefinition Height="0.09*"/>
				<RowDefinition Height="0.09*"/>
				<RowDefinition Height="0.09*"/>
				<RowDefinition Height="0.64*"/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="0.367*"/>
				<ColumnDefinition Width="0.633*"/>
			</Grid.ColumnDefinitions>
			<TextBlock 	Grid.Column="0" 
						Margin="10,0,10,0" 
						Grid.Row="0" 
						VerticalAlignment="Center" 
						HorizontalAlignment="Right" 
						FontSize="{StaticResource PhoneFontSizeMedium}">
				Class Name :
			</TextBlock>
			<TextBlock Grid.Column="0" Margin="10,0,10,0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="{StaticResource PhoneFontSizeMedium}">
				Method Name :
			</TextBlock>
			<TextBlock Grid.Column="0" Margin="10,0,10,0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="{StaticResource PhoneFontSizeMedium}">
				Result :
			</TextBlock>
			<TextBlock Grid.Column="0" Margin="10,0,10,0" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="{StaticResource PhoneFontSizeMedium}">
				Elapsed Time :
			</TextBlock>
			<TextBlock Grid.Column="0" 
						Margin="10,10,10,0" 
						Grid.Row="4" 
						VerticalAlignment="Top" 
						HorizontalAlignment="Right" 
						FontSize="{StaticResource PhoneFontSizeMedium}"
						Visibility="{Binding ErrorMessageVisibility}"
						>
				Error Message :
			</TextBlock>

			<ScrollViewer
						Grid.Row="0" 
						Grid.Column="1" 
						Margin="10,0,10,0" 
						VerticalAlignment="Center" 
						HorizontalAlignment="Stretch" 
						HorizontalScrollBarVisibility="Auto"
				>
				<TextBlock x:Name="txtClassName" 
						VerticalAlignment="Top"						
						Text="{Binding ClassName}" 
						FontSize="{StaticResource PhoneFontSizeMedium}"
						ScrollViewer.HorizontalScrollBarVisibility="Auto" />
			</ScrollViewer>
			<ScrollViewer 						
				Grid.Column="1" 
				Grid.Row="1" 
				Margin="10,0,10,0" 
				VerticalAlignment="Center" 
				HorizontalAlignment="Stretch"
				HorizontalScrollBarVisibility="Auto"
				>
				<TextBlock x:Name="txtMethodName"  
						VerticalAlignment="Top"
						Text="{Binding MethodName}" 
						FontSize="{StaticResource PhoneFontSizeMedium}"
						ScrollViewer.HorizontalScrollBarVisibility="Auto" />

			</ScrollViewer>
			<TextBlock x:Name="txtResult" 
						Grid.Column="1" 
						Grid.Row="2" 
						Margin="10,0,10,0" 
						VerticalAlignment="Center" 
						HorizontalAlignment="Stretch" 
						Text="{Binding Result}" 
						Foreground="{Binding ResultColor}" 
						FontSize="{StaticResource PhoneFontSizeMedium}"/>
			<StackPanel 						
						Grid.Column="1" 
						Grid.Row="3" Orientation="Horizontal">
				<TextBlock x:Name="txtElapsedTime" 
						Margin="10,0,10,0" 
						VerticalAlignment="Center" 
						HorizontalAlignment="Stretch" 
						Text="{Binding ElapsedMilliseconds}" 
						FontSize="{StaticResource PhoneFontSizeMedium}"/>
				<TextBlock Margin="10,0,10,0" Text="ms" VerticalAlignment="Center"/>
			</StackPanel>
			<ScrollViewer ScrollViewer.HorizontalScrollBarVisibility="Auto" 
						Grid.Row="4" 
						Grid.ColumnSpan="2" 
						Margin="16,60,16,16" >
				<TextBlock x:Name="txtErrorMessage" 
					VerticalAlignment="Top" 
					HorizontalAlignment="Stretch" 
					Text="{Binding ErrorMessage}" 
					FontSize="{StaticResource PhoneFontSizeMedium}" 
					ScrollViewer.VerticalScrollBarVisibility="Auto" 
					ScrollViewer.HorizontalScrollBarVisibility="Auto" />
			</ScrollViewer>
		</Grid>
	</Grid>

</phone:PhoneApplicationPage>
